Active Directory ドメインの作成と更新
製品バージョン:10.11
最終更新日:2024年7月31日
ADドメインを作成および更新します。
注意!!!
NAKIVO Backup & Replication がマルチテナントモードでインストールされている場合、APIの利用はマスターテナントでのみ可能です。
エンドポイント
https://<Director_IP_address>:4443/c/router
リクエスト例
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "ADDomainManagement",
"method": "saveDomain",
"data": [
null,
{
"domainName": "adtestvn.local",
"preferredDc": "10.30.30.1",
"username": "administrator",
"password": "password",
"integratedGroups": "users,domain users",
"refreshInMinutes": 60,
"changeExistingPreferredDc": true
}],
"type": "rpc",
"tid": 1}'
リクエストフィールド
|
フィールド |
種類 |
値(複数可) |
|---|---|---|
|
|
文字列 |
|
|
|
文字列 |
|
|
|
配列 |
2つの要素からなる配列:
|
|
|
文字列 |
|
|
|
整数 |
|
データ
|
フィールド |
値 |
説明 |
|---|---|---|
|
|
文字列 |
ADドメイン |
|
|
文字列 |
優先するDC/ホスト(任意) |
|
|
文字列 |
ユーザー名 |
|
|
文字列 |
パスワード |
|
|
文字列 |
統合するADグループのカンマ区切りのリスト。例: |
|
|
int
|
システムがADからデータを取得するまでの時間(分) |
|
|
ブール値 |
既存の設定から古いデータを削除できるようになります。 これは、 の「preferred DC」の値を変更し、「domain name」の値はそのままにする場合にのみ関係します。 |
回答例
{
"action": "ADDomainManagement",
"method": "saveDomain",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
応答フィールド
|
フィールド |
種類 |
値(複数可) |
|---|---|---|
|
|
文字列 |
|
|
|
文字列 |
|
|
|
文字列 |
|
|
|
文字列 |
|
|
|
null |
|
where
|
null |
|
cause
|
null |
|
data
|
null | 常に null: このメソッドはデータを返しません。上記の応答サンプルは、保存が正常に行われたことを示しています |